// index.js
Page({
  data: {
    pagesL: getCurrentPages().length
  },
  showPages() {
    console.log(getCurrentPages());
  },
  showRout() {
    console.log(this.pageRouter);
    console.log(this.router);
    // -> true
    console.log(this.pageRouter === this.router);
  },
  onShow() {
    this.setData({
      pagesL: getCurrentPages().length 
    });
  },
  toDetailEvent() {
    wx.navigateTo({
      url: '/pages/detail/index',
      success: (res) => {},
      fail: (res) => {},
      complete: (res) => {},
    })
  }
})
